package com.party.core.service.analysis;

import com.party.common.paging.Page;
import com.party.core.model.analysis.StatisticsUser;
import com.party.core.model.analysis.StatisticsUserVisit;
import com.party.core.service.IBaseService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @program: party-temp
 * @description: 统计用户接口
 * @author: Huaqunhao
 * @create: 2018-08-01 15:39
 **/
public interface IStatisticsUserService extends IBaseService<StatisticsUser> {
    StatisticsUser getByUserId( String userId);

    StatisticsUserVisit countNewAndOldUsersCount(@Param("params") Map<String,Object> map);


    /**
     * @Description: 通过时间查询用户列表
     * @Param:
     * @return:
     * @Author: Hua Qunhao
     * @Date: 2018/12/25
     */
    List<StatisticsUser> queryUserListByDate(String queryDate, Page page);

    /**
     * @Description: 通过时间查询用户数量
     * @Param:
     * @return:
     * @Author: Hua Qunhao
     * @Date: 2018/12/25
     */
    int queryUserCountByDate(String queryDate,Integer total);

    /**
     * @Description: 通过时间批量删除用户
     * @Param:
     * @return:
     * @Author: Hua Qunhao
     * @Date: 2019/1/3
     */
    void deleteUserByQueryDate(String queryDate,Integer total);
}
